package com.hxzy.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author 
 * 商品信息
 */
@Data
public class Merchandise implements Serializable {
    private BigDecimal id;

    /**
     * 商品名称
     */

    private String name;

    /**
     * 商品价格
     */

    private BigDecimal price;

    /**
     * 商品图片
     */
    private String picture;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 商品综合评分
     */
    private Long score;

    /**
     * 商家id
     */
    private BigDecimal bId;

    /**
     * 商品分类
     */
    private BigDecimal mId;

    /**
     * 是否上架 1：上架 ，0：没上架
     */
    private Long isgrounding;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private Date createTime;

    /**
     * 创建人
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String createBy;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private Date updateTime;

    /**
     * 修改人
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String updateBy;

    private static final long serialVersionUID = 1L;
}